:root {
    --primary-color: #1E90FF;
    --secondary-color: #87CEEB;
    --accent-color: #FFD700;
}

body {
    margin: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #B2E6FF 0%, #87CEEB 100%);
    min-height: 100vh;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

/* 装饰元素 */
.decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.cloud1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: 20%;
    animation: floatCloud 20s infinite linear;
}

.cloud2 {
    width: 150px;
    height: 60px;
    top: 15%;
    right: 25%;
    animation: floatCloud 25s infinite linear reverse;
}

.seagull {
    position: absolute;
    width: 30px;
    height: 15px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23333" d="M12,4L9,7L3,7L3,9L9,9L12,12L15,9L21,9L21,7L15,7L12,4Z"/></svg>');
    animation: fly 15s infinite linear;
}

/* 主场景 */
.scene {
    position: relative;
    width: 100%;
    height: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-bottle {
    position: relative;
    width: 120px;
    height: 200px;
    animation: mainBottleFloat 3s infinite ease-in-out;
}

.bottle-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px 10px 0 0;
}

.bottle-body {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 140px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    overflow: hidden;
}

.bottle-paper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
    background: #FFF5E6;
    border-radius: 5px;
}

.bottle-shine {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 20px;
    height: 40px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(-45deg);
    animation: shine 3s infinite;
}

/* 操作按钮 */
.action-buttons {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 20px;
}

.action-btn {
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
}

.email-btn:hover {
    transform: none;
}

.btn-icon {
    font-size: 24px;
}

/* 海洋 */
.ocean {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.6) 100%);
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230099ff" fill-opacity="0.3" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,224C672,213,768,171,864,149.3C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    animation: waveMove 10s linear infinite;
}

.wave2 {
    top: -50px;
    animation: waveMove 15s linear infinite reverse;
    opacity: 0.5;
}

/* 动画 */
@keyframes mainBottleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes shine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes floatCloud {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes fly {
    0% { transform: translateX(-100%) translateY(0); }
    50% { transform: translateX(100vw) translateY(-50px); }
    100% { transform: translateX(-100%) translateY(0); }
}

/* 气泡效果 */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubble 4s infinite ease-in;
}

.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 50%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 80%;
    animation-delay: 2s;
}

@keyframes bubble {
    0% {
        bottom: -20px;
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        bottom: 100%;
        transform: scale(0);
        opacity: 0;
    }
}

/* 修改模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

/* 修改模态框内容样式 */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2002;
    transition: opacity 0.2s ease;
}

.modal-content h2 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.modal-content textarea,
.modal-content input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: none;
    box-sizing: border-box;
}

.modal-content textarea {
    height: 180px;
    resize: none;
    margin: 0 0 20px 0;
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-content input[type="email"] {
    height: 50px;
    margin: 0 0 0 0;
    padding: 0 15px;
    font-size: 16px;
}

.modal-content textarea:focus,
.modal-content input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15);
    transition: none;
}

.modal-content button#submitBottle,
.modal-content button#replyBottle {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.modal-content button:hover {
    transform: none;
}

.modal-content .close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.modal-content .close:hover {
    color: #ff4444;
    transform: none;
}

.modal-content textarea::placeholder,
.modal-content input::placeholder {
    color: #999;
    font-size: 14px;
}

/* 修改捡瓶子后的内容样式 */
#bottleContent {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 20px 0;
    opacity: 0;
}

#bottleContent.show {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#bottleContent .message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

#bottleContent .time {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 回复按钮样式 */
#replyBottle {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: none;
}

#replyBottle .btn-icon {
    font-size: 20px;
}

/* 漂流瓶动画相关样式 */
.bottle-animation {
    height: 150px;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.bottle {
    position: absolute;
    left: 50%;
    bottom: -100px;
    transform: translateX(-50%);
    animation: floatUp 1.5s ease-out forwards;
}

.bottle-neck {
    width: 20px;
    height: 30px;
    background: rgba(173, 216, 230, 0.7);
    margin: 0 auto;
    border-radius: 5px 5px 0 0;
}

.bottle-body {
    width: 60px;
    height: 80px;
    background: rgba(173, 216, 230, 0.7);
    border-radius: 10px;
    position: relative;
}

.water-splash {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0) 100%);
    transform-origin: bottom;
    animation: splash 1.5s ease-out;
}

@keyframes floatUp {
    0% {
        transform: translateX(-50%) translateY(100%) rotate(-10deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    75% {
        transform: translateX(-50%) translateY(-20%) rotate(5deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0);
    }
}

@keyframes splash {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    50% {
        transform: scaleY(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scaleY(0);
        opacity: 0;
    }
}

/* 漂浮瓶子样式 */
.floating-bottles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-bottle {
    position: absolute;
    width: 30px;
    height: 60px;
    transform-origin: center center;
}

.floating-bottle .bottle-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    border-radius: 3px 3px 0 0;
    box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.floating-bottle .bottle-body {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    border-radius: 5px;
    box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

/* 添加瓶子的光效 */
.floating-bottle::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 15px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6));
    border-radius: 50%;
    transform: rotate(-45deg);
    opacity: 0.8;
}

/* 添加水波纹效果 */
.floating-bottle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: waterReflect 3s infinite ease-in-out;
}

@keyframes waterReflect {
    0%, 100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) scaleX(1.2);
        opacity: 0.2;
    }
}

/* 添加随机漂浮动画生成器 */
@keyframes randomFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(var(--tx1), var(--ty1)) rotate(var(--tr1));
    }
    50% {
        transform: translate(var(--tx2), var(--ty2)) rotate(var(--tr2));
    }
    75% {
        transform: translate(var(--tx3), var(--ty3)) rotate(var(--tr3));
    }
}

/* 扔瓶子动画样式 */
.throw-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 2001;
}

.throw-animation.active {
    opacity: 1;
    visibility: visible;
}

.throw-bottle {
    position: absolute;
    width: 40px;
    height: 80px;
    left: 50%;
    top: 40%;
    transform-origin: 50% 100%;
}

.throw-bottle .bottle-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 25px;
    background: rgba(173, 216, 230, 0.8);
    border-radius: 3px 3px 0 0;
}

.throw-bottle .bottle-body {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 60px;
    background: rgba(173, 216, 230, 0.8);
    border-radius: 8px;
}

.throw-animation.active .throw-bottle {
    animation: throwBottle 1.5s ease-out forwards;
}

.splash {
    position: absolute;
    bottom: 20%;
    left: 50%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, 50%) scale(0);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
}

.throw-animation.active .splash {
    animation: splash 0.6s ease-out 1s forwards;
}

@keyframes throwBottle {
    0% {
        transform: translate(-50%, -50%) rotate(0) scale(1);
    }
    50% {
        transform: translate(-50%, -150px) rotate(-45deg) scale(0.8);
    }
    100% {
        transform: translate(-50%, 300px) rotate(30deg) scale(0.6);
    }
}

@keyframes splash {
    0% {
        transform: translate(-50%, 50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, 50%) scale(2);
        opacity: 0;
    }
}

/* 捡瓶子场景样式 */
.pick-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2001;
}

/* 移除之前的margin-top */
#pickModal .modal-content {
    max-width: 450px;
    /* 移除 margin-top: 220px; */
}

/* 调整捡瓶子动画的位置 */
.pick-ocean {
    position: absolute;
    bottom: 50%; /* 修改位置到中间 */
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.2) 0%, rgba(30, 144, 255, 0.4) 100%);
    overflow: hidden;
}

/* 调整瓶子和涟漪的位置 */
.pick-bottle {
    position: absolute;
    width: 40px;
    height: 80px;
    left: 50%;
    bottom: 40%;
    transform: translateX(-50%) rotate(5deg);
    opacity: 0;
}

.ripples {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%);
}

.ripple {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
}

/* 捡瓶子动画 */
.pick-scene.active .pick-bottle {
    animation: bottleFloat 3s ease-out forwards;
}

.pick-scene.active .pick-hand {
    animation: handGrab 3s ease-out forwards;
}

.pick-scene.active .ripples::before,
.pick-scene.active .ripples::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: rippleEffect 2s ease-out infinite;
}

.pick-scene.active .ripples::after {
    animation-delay: 0.5s;
}

@keyframes bottleFloat {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50px) rotate(5deg);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(-5deg);
    }
    60% {
        transform: translateX(-50%) translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateX(-50%) translateY(-100vh) rotate(0);
        opacity: 0;
    }
}

@keyframes handGrab {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateX(-50%) translateY(-50px);
    }
    60% {
        transform: translateX(-50%) translateY(-70px);
    }
    100% {
        transform: translateX(-50%) translateY(-100vh);
        opacity: 0;
    }
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* 回复区域样式更新 */
.reply-section {
    margin-top: 20px;
}

.reply-section .action-btn {
    display: inline-flex;
    padding: 12px 30px;
    margin: 0 auto;
}

.reply-form {
    display: none;
    margin-top: 15px;
}

.reply-form input[type="email"],
.reply-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
}

.reply-form textarea {
    height: 120px;
    resize: none;
}

.reply-form input:focus,
.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15);
}

#sendReply {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

#sendReply:hover {
    transform: none;
}

/* 消息框样式 */
.message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    z-index: 2100;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.message-box.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-text {
    white-space: nowrap;
}

/* 定时发送选项样式 */
.schedule-option {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.schedule-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.schedule-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-label {
    font-size: 16px;
    color: #333;
}

.schedule-inputs {
    margin-top: 15px;
    display: none;
    gap: 10px;
    flex-direction: column;
}

.schedule-inputs.show {
    display: flex;
}

.schedule-inputs input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.schedule-inputs input[type="datetime-local"] {
    color: #666;
}

.schedule-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.2);
}

/* 私发邮件弹窗样式 */
#emailModal .modal-content {
    max-width: 450px;
}

#emailModal input[type="email"],
#emailModal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: none;
}

#emailModal input:focus,
#emailModal textarea:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
    transition: none;
}

#emailModal button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    color: white;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#emailModal button:hover {
    transform: none;
}

/* 修改捡瓶子弹窗样式 */
#pickModal .modal-content {
    max-width: 450px;
    /* 移除 margin-top: 220px; */
}

/* 修改回复区域样式 */
.reply-section {
    margin-top: 20px;
    text-align: center;
}

.reply-section .action-btn {
    display: inline-flex;
    padding: 12px 30px;
    margin: 0 auto;
}

.reply-form {
    margin-top: 20px;
    display: none;
}

.reply-form.show {
    display: block;
    animation: none;
}

.reply-form textarea {
    width: 100%;
    height: 120px;
    margin-bottom: 15px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    resize: none;
    transition: none;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15);
    transition: none;
}

#sendReply {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: white;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

#sendReply:hover {
    transform: none;
}

/* 邮件定时发送选项样式 */
.email-schedule-option {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 12px;
}

.email-schedule-option .schedule-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.email-schedule-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.email-schedule-inputs {
    margin-top: 15px;
    display: none;
}

.email-schedule-inputs.show {
    display: block;
    animation: none;
}

.email-schedule-inputs input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

/* 登录区域样式 */
.auth-area {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.auth-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: none;
}

.user-info {
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
}

/* 收件箱按钮样式 */
.inbox-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.inbox-btn:hover {
    transform: none;
}

.unread-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* 登录表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 输入组样式 */
.login-form .input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 邮箱输入框 */
.login-form .input-group input[type="email"] {
    flex: 1;
    width: auto;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: none;
}

/* 验证码输入区域 */
.login-form .verify-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 验证码输入框 */
#verifyCode {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 3px;
    font-weight: 500;
    transition: none;
}

/* 发送验证码按钮 */
#sendCodeBtn {
    min-width: 100px;
    height: 42px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    color: white;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease;
}

#sendCodeBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .login-form .verify-group {
        gap: 8px; /* 移动端稍微减小间距 */
    }

    #sendCodeBtn {
        min-width: 90px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* 登录模态框样式 */
#loginModal .modal-content {
    max-width: 400px;
    padding: 30px;
    background: linear-gradient(to bottom right, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: none;
}

#loginModal h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form .input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-form .input-group input {
    flex: 1;
    width: auto; /* 移除100%宽度 */
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: none;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15);
    transition: none;
}

#sendCodeBtn {
    min-width: 100px; /* 减小最小宽度 */
    height: 42px; /* 与输入框高度匹配 */
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    color: white;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮被压缩 */
    transition: box-shadow 0.2s ease;
}

#sendCodeBtn:hover {
    transform: none;
}

#sendCodeBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#loginSubmit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#loginSubmit:hover {
    transform: none;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-email {
    color: #333;
    font-size: 14px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#logoutBtn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#logoutBtn:hover {
    transform: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    #loginModal .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .login-form .input-group {
        flex-direction: row; /* 保持水平布局 */
    }

    #sendCodeBtn {
        min-width: 90px; /* 移动端稍微缩小按钮 */
        font-size: 12px;
        padding: 0 8px;
    }

    .user-info {
        padding: 8px 15px;
    }

    .user-email {
        max-width: 150px;
    }
}

/* 优化所有输入框的过渡效果 */
input,
textarea {
    /* 移除所有的过渡延迟 */
    transition: none;
    /* 添加即时的边框颜色变化 */
    border: 2px solid #e0e0e0;
}

input:focus,
textarea:focus {
    /* 移除过渡效果，立即显示聚焦状态 */
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15);
    transition: none;
}

/* 登录表单输入框 */
.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    /* 移除过渡效果 */
    transition: none;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.15);
    /* 移除过渡效果 */
    transition: none;
}

/* 邮件模态框输入框 */
#emailModal input[type="email"],
#emailModal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    /* 移除过渡效果 */
    transition: none;
}

#emailModal input:focus,
#emailModal textarea:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
    /* 移除过渡效果 */
    transition: none;
} 